package com.springboot.study.tests.designpattern.state;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Objects;

/**
 * @Author: guodong
 * @Date: 2021/5/8 16:28
 * @Version: 1.0
 * @Description:
 */
@Data
public class JdLogistics {

    LogisticsState logisticsState;

    public void doAction(){
        Objects.requireNonNull(logisticsState);
        logisticsState.doAction();
    }


}
